<titlemenu></titlemenu>
<div class="dj-list">
    <div class="dj-list-body">
        <div party-tree search-input="true" data-selectdzzdm="selectparams.selectdzzdm" data-selectdzzmc="selectparams.selectdzzmc"
             data-isshowxz="0"
             data-dzzdm="selectparams.dzzdm"
             data-dzzmc="selectparams.dzzmc"
             data-showtogglebtn="true"
             data-isunfold="selectparams.isunfold"
             data-defaultselected="selectparams.defaultselected"></div>
        <div class="dj-list-content content1">
            <div class="card">
                <div activate-input activate-select class="header search-header">
                    <div fold-partytree data-isunfold="selectparams.isunfold"></div>
                    <div class="search-param-panel">
                        <div class="search-input">
                            <form class="form-horizontal">
                                <div class="row clearfix form-inline">
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>当前选中组织</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <div class="input-group input-group-search">
                                                    <input name="selectdzzmc" type="text" style="min-width: 90px"
                                                           ng-model="selectparams.selectdzzmc" class="form-control"
                                                           ng-disabled="true"/>
                                                    <span class="input-group-addon"
                                                          ng-click="setisunfold()">选择</span>
                                                </div>


                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>试卷名称</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="testName" class="form-control" type="text"
                                                       ng-keypress="($event.which === 13)?search():0"
                                                       ng-model="selectparams.testName"
                                                       placeholder=""/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>考试时间</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="startDate" class="form-control fm-ct-first"
                                                       autocomplete="off"
                                                       autoclose="true"
                                                       data-date-format="yyyy-MM-dd" data-date-type="string"
                                                       ng-model="selectparams.startDate"
                                                       ng-change="search()"
                                                       placeholder="" bs-datepicker/>
                                                <input name="endDate" class="form-control fm-ct-last" type="text"
                                                       autocomplete="off"
                                                       autoclose="true"
                                                       data-date-format="yyyy-MM-dd" data-date-type="string"
                                                       ng-model="selectparams.endDate"
                                                       ng-change="search()"
                                                       placeholder="" bs-datepicker/>

                                            </div>
                                        </div>
                                    </div>
                                </div>

                            </form>
                        </div>
                        <div class="search-btn" style="margin-right: 20px;">
                            <div style="min-width: 13em">
                                   <span class="moreSpan" ng-click="isShowClick()"
                                         style='padding-right:1em;cursor:pointer;'>{{moreTxt}}<i class="material-icons"
                                                                                                 style="position: relative;top:7px;">{{isShow ? 'expand_less' : 'expand_more'}}</i></span>
                                <button class="btn btn-default1"
                                        ng-click="search()">查询
                                </button>
                                <button class="btn btn-default1 btn-reset"
                                        ng-click="reset()">重置
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="search-btn" style="margin-right: 20px;">
                        <div style="float: right">
                            <button class="btn btn-default1"
                                    ng-click="export()">汇总导出
                            </button>
                        </div>
                    </div>
                </div>
                <div class="body">
                    <div class="zero-list-table-panel">
                        <div class="zero-source-table-div">
                            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                                <thead>
                                <tr>
                                    <th class="th-rownum"><div>序号</div></th>
                                    <th>考试名称</th>
                                    <th>试卷名称</th>
                                    <th>所在党组织</th>
                                    <th>组织单位</th>
                                    <th>开考时间</th>
                                    <th>结束时间</th>
                                    <th>参试人数</th>
                                    <th>平均分</th>
                                    <th>及格率</th>
                                    <th>总分</th>
                                    <th>评卷人</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="it in dataList">
                                    <td class="text-center" td-rownum index="$index" pageindex="selectparams.pageindex" pagesize="selectparams.pagesize"></td>
                                    <td>{{it.testName}}</td>
                                    <td>{{it.paperName}}</td>
                                    <td style="min-width:300px;white-space:pre-line;">{{it.partyname}}</td>
                                    <td>{{it.publicParty}}</td>
                                    <td class="text-center">{{it.startTime | date:'yyyy-MM-dd HH:mm'}}</td>
                                    <td class="text-center">{{it.endTime | date:'yyyy-MM-dd HH:mm'}}</td>
                                    <td class="text-center">{{it.joinUserCount}}</td>
                                    <td class="text-center">{{it.averageScore}}</td>
                                    <td class="text-center">{{it.passRate * 100}}%</td>
                                    <td class="text-center">{{it.paperScore}}</td>
                                    <td class="text-center">{{it.examinerName}}</td>
                                </tr>
                                <tr ng-if="dataList.length<=0">
                                    <td colspan="15" style="text-align:center">暂无数据</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="zero-target-table-div">
                            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                                <thead>
                                <tr>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="it in dataList" zero-table-height>
                                    <td>
                                        <button class="btn btn-default1"
                                                ng-click="detail(it.testId,it.testName)">查看成绩排名
                                        </button>
                                    </td>
                                </tr>
                                <tr ng-if="pageInfo.ptotal==0">
                                    <td colspan="1" style="text-align:center">无</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <pagination data-pageindex="selectparams.pageindex" data-pagesize="selectparams.pagesize"
                                data-ptotal="pageInfo.ptotal"></pagination>
                </div>
            </div>
        </div>
    </div>
</div>
